//尝试下split
var str ="2:3:4:5";
//var str ='2,3,4,5'
var strArray =str.split(':');//过滤掉：并且拆分成字符串返回字符串数组
console.log(str);
console.log(strArray);

//解码范例，可以应对网站的签名等
var a =['user=damao&pass=a123.456','sign=xxxx'];
var zipa = new Buffer(a[0]).toString('base64');
console.log("转码:",zipa);
var unzipa =new Buffer(zipa,'base64').toString().split(':');
console.log("解码:",unzipa);
//转码: dXNlcj1kYW1hbyZwYXNzPWExMjMuNDU2
//解码: [ 'user=damao&pass=a123.456' ]
